﻿using System;
using System.Collections.Generic;

using System.Text;
using System.Windows;
using System.Windows.Media;
using System.Windows.Controls;
using Bixas.Tangibilis.Input;

namespace Bixas.Tangibilis
{
    public class TouchCursorWindow : Window
    {
        static TouchCursorWindow()
        {
            FrameworkElement.DefaultStyleKeyProperty.OverrideMetadata(typeof(TouchCursorWindow), new FrameworkPropertyMetadata(typeof(TouchCursorWindow)));
        }

        public TouchCursorWindow():base()
        {
            this.Owner = TouchSource.getInstance().CurrentWindow;
            base.BorderBrush = Brushes.Transparent;
            base.Topmost = true;
            base.ShowInTaskbar = false;
            base.Visibility = Visibility.Visible;
            base.AllowsTransparency = true;
            base.Background = Brushes.Transparent;
            //base.RenderSize = new Size(this.defaultImage.Width, this.defaultImage.Height);
            base.WindowStyle = WindowStyle.None;
            base.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            base.IsEnabled = true;
            base.Show();
        }
    }
}
